import 'package:flutter/material.dart';

class ShopSearchBar extends StatelessWidget {
  const ShopSearchBar({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.all(10),
      //背景颜色:搜索框外边的背景颜色
      decoration: BoxDecoration(
        color: Colors.grey[200],
      ),
      //搜索框的背景颜色
      child: Container(
        //背景颜色:搜索框的背景颜色
        height: 30,
        decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.circular(15),
        ),
        padding: const EdgeInsets.all(5),
        child:  Row(
          children: [
            //左边：搜索图标
             Icon(Icons.search,color: Colors.grey[400],),
             const SizedBox(width: 5),
            //右边：文本
             Text('搜索你要找的商品',style: TextStyle(color: Colors.grey[400]),),
          ],
        ),
      ),
    );
  }
}